<template>
  <div>
    <div>
      <p class="item">商品管理</p>
    </div>
    <ul>
      <li class="title">
        <span><input type="checkbox" /></span>
        <span>分类名称</span>
        <span>关联</span>
        <span>创建日期</span>
        <span>数量</span>
        <span>操作</span>
      </li>
    </ul>
    <div class="demo-collapse">
      <el-collapse v-model="activeName" accordion="true">
        <el-collapse-item name="1">
          <template #title>
            <span><input type="checkbox" /></span>
            <span class="down-logo">
              <i></i>
              鞋类
            </span>
            <span>品牌</span>
            <span>2020-10-23 16:15</span>
            <span>991</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </template>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
        </el-collapse-item>
        <el-collapse-item name="2">
          <template #title>
            <span><input type="checkbox" /></span>
            <span class="down-logo">
              <i></i>
              外套
            </span>
            <span>品牌</span>
            <span>2020-10-23 16:15</span>
            <span>991</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </template>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
        </el-collapse-item>
        <el-collapse-item name="3">
          <template #title>
            <span><input type="checkbox" /></span>
            <span class="down-logo">
              <i></i>
              裤子
            </span>
            <span>品牌</span>
            <span>2020-10-23 16:15</span>
            <span>991</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </template>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
        </el-collapse-item>
        <el-collapse-item name="4">
          <template #title>
            <span><input type="checkbox" /></span>
            <span class="down-logo">
              <i></i>
              上衣
            </span>
            <span>品牌</span>
            <span>2020-10-23 16:15</span>
            <span>991</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </template>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
          <p>
            <span><input type="checkbox" /></span>
            <span>休闲鞋</span>
            <span>品牌 规格</span>
            <span>2020-10-23 16:15</span>
            <span>888</span>
            <span>
              <a style="color: #126dff">&ensp;升序&ensp;</a>
              <a style="color: #126dff">&ensp;降序&ensp;</a>
              <a style="color: red">&ensp;删除&ensp;</a>
            </span>
          </p>
        </el-collapse-item>
      </el-collapse>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  setup() {
    const activeName = ref("1");
    return {
      activeName,
    };
  },
});
</script>

<style lang="less" scoped>
.demo-collapse {
  span {
    flex: 1;
    text-align: center;
  }
  .down-logo {
    position: relative;
    i {
      display: inline-block;
      width: 9px;
      height: 6px;
      background: url(../../../../images/路径\ 1.png);
      position: absolute;
      left: 30%;
      top: 45%;
    }
  }

  /deep/.el-icon {
    display: none;
  }

  p {
    display: flex;
    height: 48px;
    line-height: 48px;
  }
}

.title {
  display: flex;
  height: 66px;
  justify-content: space-around;
  line-height: 66px;
  font-size: 16px;
  color: white;
  background: #126dff;
  text-align: center;
  align-items: center;
  span {
    flex: 1;
  }
}

.item {
  font-size: 16px;
  font-weight: bolder;
  padding-left: 7px;
  margin-bottom: 20px;
  border-left: 3px solid blue;
  span {
    font-size: 12px;
  }
}
</style>
